package edu.etu.sob.model.impl;

import com.hp.hpl.jena.graph.MyNode;
import com.hp.hpl.jena.graph.Node;
import com.hp.hpl.jena.graph.Triple;

public class NodeWrapper {

	private MyNode s;
	private MyNode p;
	private MyNode o;

	public NodeWrapper() {
		this(Node.ANY, Node.ANY, Node.ANY);
	}
	
	public NodeWrapper(Triple t) {
		this(t.getSubject(), t.getPredicate(), t.getObject());
	}
	
	public NodeWrapper(Node s, Node p, Node o) {
		this.s = new MyNode(s.toString());
		this.p = new MyNode(p.toString());
		this.o = new MyNode(o.toString());
	}
	
	public void setSubject(MyNode s) {
		this.s = s;
	}

	public void setPredicate(MyNode p) {
		this.p = p;
	}

	public void setObject(MyNode o) {
		this.o = o;
	}

	public MyNode getSubject() {
		return s;
	}

	public MyNode getPredicate() {
		return p;
	}

	public MyNode getObject() {
		return o;
	}
}
